package com.tj.collection.controller.chatquality.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@ApiModel(value = "chatAccountVO", description = "会话信息")
public class ChatAccountVO implements Serializable {
    @ApiModelProperty("model用户码")
    private String modelUserCode;
    @ApiModelProperty("用户昵称")
    private String nickName;
    @ApiModelProperty("用户码")
    private String userCode;
    @ApiModelProperty("用户头像")
    private String avatarUrl;
    @ApiModelProperty("用户在线状态：1-在线 2-离线")
    private Integer online;
    @ApiModelProperty("用户会话等级")
    private Integer level;
    @ApiModelProperty("最近一条消息发送时间")
    private String latestSendTime;
    @ApiModelProperty("最近一条消息内容")
    private String latestMsg;
    @ApiModelProperty("未读消息数")
    private String unReadNum;
    @ApiModelProperty("性别")
    private Integer gender;
    @ApiModelProperty("会话ID")
    private String targetId;
    @ApiModelProperty("是否为会员标记：true-会员，false-非会员")
    private boolean member;
    @ApiModelProperty("消息数量")
    private Integer msgNum;

    public ChatAccountVO() {
    }

    public String getModelUserCode() {
        return modelUserCode;
    }

    public void setModelUserCode(String modelUserCode) {
        this.modelUserCode = modelUserCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public Integer getLevel() {
        return level == null ? 0 : level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getLatestSendTime() {
        return latestSendTime;
    }

    public void setLatestSendTime(String latestSendTime) {
        this.latestSendTime = latestSendTime;
    }

    public String getLatestMsg() {
        return latestMsg;
    }

    public void setLatestMsg(String latestMsg) {
        this.latestMsg = latestMsg;
    }

    public String getUnReadNum() {
        return unReadNum;
    }

    public void setUnReadNum(String unReadNum) {
        this.unReadNum = unReadNum;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public boolean isMember() {
        return member;
    }

    public void setMember(boolean member) {
        this.member = member;
    }

    public Integer getMsgNum() {
        return msgNum;
    }

    public void setMsgNum(Integer msgNum) {
        this.msgNum = msgNum;
    }
}
